package com.guigu.dealservice.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.guigu.dealservice.entity.Pending;
import com.guigu.dealservice.mapper.PendingMapper;
import com.guigu.dealservice.service.PendingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
@Service
public class PendingServiceImpl extends ServiceImpl<PendingMapper, Pending> implements PendingService {
    @Autowired
    private PendingMapper pendingMapper;
    @Override
    public Pending queryPending() {
        Pending pending = new Pending();
        pending.setEquipmentCount(pendingMapper.queryEquipmentCount());
        pending.setSellerCount(pendingMapper.querySellerCount());
        pending.setDemandCount(pendingMapper.queryDemandCount());
        pending.setReportCount(pendingMapper.queryReportCount());
        return pending;
    }
}
